package com.ssm.mapper;

import com.ssm.hj.search.UserSearch;
import com.ssm.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
//    阿杰 登入查询
    User loginQuery(String name) throws Exception;
//    阿杰 查询所有用户
    List<User> queryUserAll(UserSearch userSearch) throws Exception;
//    阿杰 修改用户状态
    int updateState(@Param("id") int id, @Param("state") int state) throws Exception;
}
